<template>
    <div class="bg">
        <div class="confirm">
            <img src="@/assets/images/adopt.jpg" alt="">
            <div>
                <h2>预定成功!</h2>
                <div class="text">
                    你有一个时间为
                    <p class="detail">在{{date}} {{clickTime}}的订单</p>
                </div>
            </div>
            <p-button class="button" @click.native="confirm()">确定</p-button>
        </div>
    </div>
</template>
<script>
import PButton from '@/components/button.vue'
export default {
    components:{
        PButton
    },
    props:['pop','date','clickTime'],
    methods:{
        confirm() {
            this.$emit("changepop",false)
            
        }
    }
}
</script>
<style lang="less" scoped>
.bg{
    background-color: rgba(148, 138, 138, 0.411);
    height: 100%;
    width: 100%;
    position: fixed;
    z-index: 100;
    
    .confirm{
        position: absolute;
        display: flex;
        text-align: center;
        align-items: center;
        flex-direction: column;
        justify-content: space-around;
        background-color: white;
        width: 60%;
        height: 40%;        
        left: 20%;
        top: 25%;
        border-radius: 0.3rem;
        box-shadow:4px 4px 8px 5px #3c3d3f13;
        img{
            width: 2.5rem;
            height: 2.5rem;
        }
        .text{
            padding-top: 0.4rem;
            line-height: 0.5rem;
            width: 70%;
            margin: 0 auto;
            .detail {
                color: #fb7486;                
            }
        }
        .button {
            width: 3rem;
            margin:0 auto;
            
            /deep/button {
                background: linear-gradient(90deg,#f49939, #fb7486);
            }
        }
    }
}
</style>